#ifndef CORE_PLUGIN 
#define CORE_PLUGIN

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "plugin.h"

struct core_plugin
{
	int is_running;
	pthread_t thread;
	struct plugin *plugin;
	void (*notify_plugin_control)( char *msg ); /*Core plugin is only plugin that has access to plugin_control*/
	void (*free)();
};

struct core_plugin * new_core_plugin();
void delete_core_plugin();
void stop_thread();


#endif /* CORE_PLUGIN */
